QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Method Reporting Methods

To write a drawing engine, you need to implement a method for reporting some of your engine's methods to QuickDraw 3D RAVE.

A pointer to your drawing engine's method reporting method is passed as a parameter to the QARegisterEngine function. See page  [link] for details.

TQAEngineGetMethod

A drawing engine must define a method to return pointers to some of its methods.

typedef TQAError (*TQAEngineGetMethod) (
                     TQAEngineMethodTag methodTag,
                     TQAEngineMethod *method);
methodTag
A selector that determines which method is to be returned about your drawing engine. See "Drawing Engine Method Selectors" for complete information about the available method selectors.
method
On exit, a pointer to your drawing engine's method of the specified type.

DESCRIPTION

Your TQAEngineGetMethod function is called by QuickDraw 3D RAVE to retrieve the addresses of some of your engine's methods. Your function should return, in the method parameter, a pointer to the drawing engine method whose type is specified by the methodTag parameter.


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |